package com.boc.langxiang.contract.shop;

import com.boc.langxiang.contract.BaseView;
import com.boc.langxiang.entity.bean.ShopBannerInfo;
import com.boc.langxiang.entity.response.BaseResponse;
import com.boc.langxiang.entity.response.ShopGoodsContent;
import com.boc.langxiang.entity.response.ShoppingCarNumContent;
import com.boc.langxiang.presenter.BasePresenter;

import java.util.List;

/**
 * Created by Li Guoxi on 2016/7/5.
 */
public interface ShopIndexContract {
    interface View extends BaseView{
        void onGetBannerSuccess(BaseResponse<List<ShopBannerInfo>> response);
        void onGetGoodsSuccess(BaseResponse<ShopGoodsContent> response);
        void onGetAllProductSuccess(BaseResponse<ShopGoodsContent> response);
        void onGetSpecialTopicSuccess(BaseResponse<ShopGoodsContent> response);
        void onGetShoppingCarNumberSuccess(BaseResponse<ShoppingCarNumContent> response);
    }

    interface Presenter extends BasePresenter{
        void getBanner(CallBack callBack);
        void getGoods(CallBack callBack);
        void getAllProducts(CallBack callBack);
        void getSpecialTopic(CallBack callBack);
        void getShoppingCarNumber();
        void star();
    }

    interface CallBack{
        void onCallBack(BaseResponse response);
    }
}
